package com.longkier.gx_library_springboot.repository;

import com.longkier.gx_library_springboot.entity.Notice;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface NoticeRepository extends JpaRepository<Notice, Long> {
    List<Notice> findAllByOrderByCreateTimeDesc(Pageable pageable);
}
